Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Gpio command controller #1251

Open
wants to merge 48 commits into
base: master
Choose a base branch
from

Conversation

Wiktor-99
Copy link

@Wiktor-99 Wiktor-99 commented Aug 17, 2024

As I discussed with @christophfroehlich I've opened new pr with gpio controller.

This PR is a follow-up to the thread and implements a controller to send commands to GPIO interfaces, allowing specific command interfaces for each GPIO.

I have made the following changes compared to the original PR:

  • I utilized the 'DynamicJointState' message for both the command and state interfaces (this allows sending commands with specific GPIO values without having to worry about the order of ports in the command message).
  • I added a parameters file, and the new input parameters file will look something like this:
gpios:
  - gpio1
  - gpio2
command_interfaces:
  - gpio1:
    - ports:
      - dig1
      - dig2
  - gpio2:
    - ports:
      - ana1
  • I've done significant refactoring and have added many new UTs.

mcbed and others added 30 commits July 26, 2024 09:25
…rams struct instead.

Use default member initializer.
Copy link
Contributor

@olivier-stasse olivier-stasse left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks a lot. The unit tests looks pretty extensive.
It would be nice if a maintainer could allow the CI to run on your PR.

gpio_controllers/package.xml Outdated Show resolved Hide resolved
@Wiktor-99
Copy link
Author

There was some issue with includes I've fixed it so jobs can be run more time.

@Wiktor-99
Copy link
Author

I've fixed docks and pre-commit jobs other two jobs failed due to pid controller and ackermann steering controller.
I believe that now CI should be green.

@Wiktor-99
Copy link
Author

@christophfroehlich could you rerun the CI?

@Wiktor-99
Copy link
Author

@christophfroehlich could you rerun the CI?

It appears that the CI is unstable and is failing on the diff drive and pid controller.

@christophfroehlich
Copy link
Contributor

@christophfroehlich could you rerun the CI?

It appears that the CI is unstable and is failing on the diff drive and pid controller.

Binary builds due to a recent API breaking change. Semi-binary seems to be happy.

@Wiktor-99
Copy link
Author

@christophfroehlich could you rerun the CI?

It appears that the CI is unstable and is failing on the diff drive and pid controller.

Binary builds due to a recent API breaking change. Semi-binary seems to be happy.

Okay, so what steps should be taken to merge the pr?

@christophfroehlich
Copy link
Contributor

Someone has to find time to test and review it..

Copy link

codecov bot commented Sep 26, 2024

Codecov Report

Attention: Patch coverage is 93.69369% with 21 lines in your changes missing coverage. Please review.

Project coverage is 80.81%. Comparing base (50036e1) to head (a2b1f4f).

Files with missing lines Patch % Lines
gpio_controllers/src/gpio_command_controller.cpp 85.12% 16 Missing and 2 partials ⚠️
..._controllers/test/test_gpio_command_controller.cpp 98.54% 0 Missing and 3 partials ⚠️
Additional details and impacted files
@@            Coverage Diff             @@
##           master    #1251      +/-   ##
==========================================
+ Coverage   80.36%   80.81%   +0.45%     
==========================================
  Files         105      108       +3     
  Lines        9390     9723     +333     
  Branches      828      843      +15     
==========================================
+ Hits         7546     7858     +312     
- Misses       1570     1586      +16     
- Partials      274      279       +5     
Flag Coverage Δ
unittests 80.81% <93.69%> (+0.45%) ⬆️

Flags with carried forward coverage won't be shown. Click here to find out more.

Files with missing lines Coverage Δ
...rollers/test/test_load_gpio_command_controller.cpp 100.00% <100.00%> (ø)
..._controllers/test/test_gpio_command_controller.cpp 98.54% <98.54%> (ø)
gpio_controllers/src/gpio_command_controller.cpp 85.12% <85.12%> (ø)

... and 2 files with indirect coverage changes

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

5 participants